from rest_framework.serializers import ModelSerializer

from goods.models import GoodsCategory


class CategorySimpleSerializer(ModelSerializer):
    # 定义一级序列化器类

    class Meta:
        model = GoodsCategory
        fields = ('id', 'name')
